rolesystem.jade.agents
Class WrapperBehaviour

java.lang.Object
  extended by SimpleBehaviour
      extended by rolesystem.jade.agents.WrapperBehaviour

public class WrapperBehaviour
extends SimpleBehaviour

This is the behaviour for agents of rolesystem, which acts as a wrapper layer. An agent of rolesystem has to construct an instance of this behaviour and add it to its list of behaviours. Such agent must provide an instance implementing the interface SubjectLayer, that represents the subject actually participating in rolesystem.


Constructor Summary
WrapperBehaviour(Agent agent, SubjectLayer subject, Behaviour nextBehaviour)
           
 
Method Summary
 void action()
           
 boolean done()
           
 int onEnd()
           
 void onStart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperBehaviour

public WrapperBehaviour(Agent agent,
                        SubjectLayer subject,
                        Behaviour nextBehaviour)
Parameters:
agent - Agent owner of this behaviour.
subject - Subject layer of the agent, actually participating in rolesystem.
nextBehaviour - Behaviour to add when the SubjectLayer has finished its job.
Method Detail

onStart

public void onStart()

onEnd

public int onEnd()

action

public void action()

done

public boolean done()